package org.giovanolli.mumi.view.validator;

import org.giovanolli.mumi.controller.business.PatientModel;
import org.giovanolli.mumi.entities.Patient;
import org.giovanolli.mumi.entities.filter.EntityFilter;
import org.giovanolli.mumi.entities.filter.PatientFilter;
import org.giovanolli.mumi.service.PatientService;
import org.giovanolli.mumi.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * The Class PatientModelValidator.
 */
@Component
public class PatientModelValidator extends AbstractViewStateModelValidator<Patient, PatientModel> {

	/** The patient service. */
	@Autowired
	private PatientService patientService;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getFilter()
	 */
	@Override
	public EntityFilter<Patient> getFilter() {
		return new PatientFilter();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getService()
	 */
	@Override
	public Service<Patient> getService() {
		return patientService;
	}

}